<li class="media">
  <div class="pull-left">
    <span class="glyphicon glyphicon-volume-down media-object"></span>
  </div>
  <div class="media-body">
    <div class="notification-body">
      {% set data = notification.content %}
        {% if data.type == 'classroom' %}
           【{{'%classroom%公告'|trans({'%classroom%':setting('classroom.name')|default('班级'|trans)})}}】
        {% elseif data.type == 'course' %}
           【{{'课程公告'|trans}}】
        {% endif %}
        {{'你正在学习的'|trans}}<a href='{{data.url}}' target='_blank'>{{data.title}}</a>{{'发布了一个新的公告，'|trans}}<a href='{{data.url}}' target='_blank'>{{'快去看看吧'|trans}}</a>
    </div>
    <div class="notification-footer">
     {{ notification.createdTime|date_format }}  
    </div>
  </div>
</li>
